import { BuffDataSet } from "@/game/Buff"

export const buffTable: Record<number, BuffDataSet> = {
  [10000001]: {
    description: "攻击力 + 10%",
    effects: [
    ],
    pro: function (pro) {
      pro.atk = pro.atk.map(item => Math.floor(item * 1.1))
      return pro
    },
    name: "猛攻",
  },
  [10000002]: {
    description: "最大生命值 + 10%",
    effects: [
    ],
    pro: function (pro) {
      pro.maxHP = Math.floor(pro.maxHP * 1.1)
      return pro
    },
    name: "血量",
  },
  [10000003]: {
    description: "敌方攻击力 - 10%",
    effects: [
    ],
    pro: function (pro) {
      pro.atk = pro.atk.map(item => Math.floor(item * 0.9))
      return pro
    },
    name: "破兵",
  },
  [10000004]: {
    description: "被攻击后反击",
    effects: [
      { id: 20000004, 'timing': 'afterattack' }
    ],
    name: "反击",
  },
}